package demo.spring.securing.manager;

import org.springframework.context.annotation.Bean;

/**
 * Created by lushun.chen on 2017/4/17.
 *
 * @author lushun.chen
 */
public class ManagerConfig {


    /**
     * 前线管理过滤器
     *
     * @return
     */
    @Bean
    public CustomFilterSecurityInterceptor customFilterSecurityInterceptor() {
        return new CustomFilterSecurityInterceptor();
    }

    /**
     * 权限配置资源管理器
     *
     * @return
     */
    @Bean
    public CustomSecurityMetadataSource accessDecisionManager() {
        return new CustomSecurityMetadataSource();
    }


}
